package cn.gson.fengboot.controller;

import cn.gson.fengboot.model.pojos.Lkhqr;
import cn.gson.fengboot.model.pojos.Lwxgc;
import cn.gson.fengboot.model.service.LwxgcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/vue")
public class LwxgcController {
    @Autowired
    LwxgcService lwxgcService;

    //查询
    @RequestMapping("/wxgccx")
    @ResponseBody
    public List<Lwxgc> wxgccx(Integer gcbid){
        return lwxgcService.wxgccx(gcbid);
    }

    //新增
    @RequestMapping("/addwxgc")
    @ResponseBody
    public  void addkhqr(@RequestBody Lwxgc lwxgc){
        lwxgcService.addwxgc(lwxgc);
    }
}
